﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Collections;

namespace NHModel.Entities
{
    public class MsgEmail
    {
        #region Member Variables

        protected long _id;
        protected string _uEmail;
        protected IList _eamilMsgContents;


        #endregion

        #region Constructors

        public MsgEmail() { }

        public MsgEmail(string uEmail)
        {
            this._uEmail = uEmail;
        }

        #endregion

        #region Public Properties

        public virtual long Id
        {
            get { return _id; }
            set { _id = value; }
        }

        public virtual string UEmail
        {
            get { return _uEmail; }
            set
            {
                if (value != null && value.Length > 50)
                    throw new ArgumentOutOfRangeException("Invalid value for UEmail", value, value.ToString());
                _uEmail = value;
            }
        }

        public virtual IList EamilMsgContents
        {
            get
            {
                if (_eamilMsgContents == null)
                {
                    _eamilMsgContents = new ArrayList();
                }
                return _eamilMsgContents;
            }
            set { _eamilMsgContents = value; }
        }


        #endregion

    }
}
